import request from '@/utils/request'

///updateStatus/{id}
export function updateStatus(id) {
  return request({
    url: '/reunion/notification/updateStatus/' + id,
    method: 'get'
  })
}

//getAllNotification
export function getAllNotification() {
  return request({
    url: '/reunion/notification/getAllNotification',
    method: 'get'
  })
}


// 查询通知列表
export function listNotification(query) {
  return request({
    url: '/reunion/notification/list',
    method: 'get',
    params: query
  })
}

// 查询通知详细
export function getNotification(id) {
  return request({
    url: '/reunion/notification/' + id,
    method: 'get'
  })
}

// 新增通知
export function addNotification(data) {
  return request({
    url: '/reunion/notification',
    method: 'post',
    data: data
  })
}

// 修改通知
export function updateNotification(data) {
  return request({
    url: '/reunion/notification',
    method: 'put',
    data: data
  })
}

// 删除通知
export function delNotification(id) {
  return request({
    url: '/reunion/notification/' + id,
    method: 'delete'
  })
}
